package com.qf.serive;

import com.qf.dao.UserDao;
import com.qf.dao.UserDaoImpl;
import com.qf.pojo.User;

/**
 * @author zhaojian
 */
public class UserServiceImpl implements UserService {

    //注入
    private UserDao userDao;

    //set方法注入
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public User findUserById(Integer id) {
        System.out.println("======执行了UserServiceImpl类的findUserById方法=============");
        User user = userDao.findById(1);
        return user;
    }

}
